package indi.zhifa.expshare.class001.chemicalmatch.service;

import indi.zhifa.expshare.class001.chemicalmatch.entity.dto.NickNameDto;
import indi.zhifa.expshare.class001.chemicalmatch.entity.dto.NickNameFindRequest;
import indi.zhifa.expshare.class001.chemicalmatch.entity.dto.NickNameInfoRequest;
import indi.zhifa.expshare.class001.chemicalmatch.entity.dto.NickNamePageRequest;
import indi.zhifa.expshare.class001.chemicalmatch.entity.po.NickNameMongoData;
import indi.zhifa.expshare.class001.chemicalmatch.entity.vo.ProductTypeVo;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface INickNameService {
    void importChemicalNickNameFromExcel(MultipartFile pFileRequest) throws IOException;
    void addNickName(String pId, List<String> pNickNames);
    void addNickName(NickNameDto pNickNameDto);
    void delete(String pId,String pNickName);
    NickNameMongoData findNickname(NickNameFindRequest pNickNameFindRequest);
    NickNameMongoData info(String pId);
    NickNameMongoData info(NickNameInfoRequest pNickNameInfoRequest);
    List<ProductTypeVo> getProductTypeList();
    void clear();

    Map<String, Page<NickNameMongoData>> page(List<NickNamePageRequest> pRequestList);

}
